package com.yhg.qxmall.cartorder.feign;

import com.yhg.common.utils.R;
import com.yhg.qxmall.cartorder.vo.SkuStockTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 凌月青缃
 * @date 2020/12/23
 */
@FeignClient("qxmall-ware")
public interface FrontWareService {

    @GetMapping("/ware/waresku/deleteStock")
    public R deleteStock(@RequestParam Long skuId, @RequestParam Integer count);

    @GetMapping("/ware/waresku/getStock")
    public SkuStockTo getStock(@RequestParam Long skuId);

    @GetMapping("/ware/waresku/addStock")
    public Boolean addtoStock(@RequestParam Long skuId,@RequestParam Integer count);
}
